package com.ddone.finance.service;

import com.ddone.finance.pojo.entity.Dict;
import com.baomidou.mybatisplus.extension.service.IService;

import java.io.InputStream;
import java.util.List;

/**
 * <p>
 * 数据字典 服务类
 * </p>
 *
 * @author ddone
 * @since 2024-04-10
 */
public interface DictService extends IService<Dict> {

    void importExcel(InputStream fileStream);

    List<Dict> listByPatentId(Long parentId);

    boolean hasChildren(Long id);

    List<Dict> findByDictCode(String dictCode);

    String getNameByParentDictCodeAndValue(String dictCode, Integer value);
}
